.NET Framework Class Library |
Partitioner..::.Create<(Of <(TSource>)>) Method (IEnumerable<(Of <(TSource>)>)) |
Partitioner Class See Also Send Feedback |
Creates an orderable partitioner from a IEnumerable<(Of <(T>)>) instance.
Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function Create(Of TSource) ( _ source As IEnumerable(Of TSource) _ ) As OrderablePartitioner(Of TSource) |
C# |
---|
public static OrderablePartitioner<TSource> Create<TSource>( IEnumerable<TSource> source ) |
Parameters
- source
- Type: System.Collections.Generic..::.IEnumerable<(Of <(TSource>)>)
The enumerable to be partitioned.
Type Parameters
- TSource
- Type of the elements in source enumerable.
Return Value
An orderable partitioner based on the input array.Remarks
The ordering used in the created partitioner is determined by the natural order of the elements
as retrieved from the source enumerable.